using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmPrePurchaseRequestReject")]
    public class PrePurchaseRequestReject
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PprRejId", ResourceType = typeof(Resources.PrePurchaseRequestRejectResource))]
        public int PprRejId { get; set; }

        [ForeignKey("PrePurchaseRequest")]
		[DataMember, Display(Name = "PprId", ResourceType = typeof(Resources.PrePurchaseRequestRejectResource))]
        public int PprId { get; set; }

		[DataMember, Display(Name = "PprRejNo", ResourceType = typeof(Resources.PrePurchaseRequestRejectResource))]
        public int PprRejNo { get; set; }

		[DataMember, Display(Name = "PprRejDate", ResourceType = typeof(Resources.PrePurchaseRequestRejectResource))]
        public System.DateTime PprRejDate { get; set; }

		[DataMember, Display(Name = "PprRejReason", ResourceType = typeof(Resources.PrePurchaseRequestRejectResource))]
        public string PprRejReason { get; set; }

		[DataMember, Display(Name = "RejectedBy", ResourceType = typeof(Resources.PrePurchaseRequestRejectResource))]
        public int RejectedBy { get; set; }

		[DataMember, Display(Name = "RejectedWhen", ResourceType = typeof(Resources.PrePurchaseRequestRejectResource))]
        public Nullable<System.DateTime> RejectedWhen { get; set; }
    
		[DataMember]
        public virtual PrePurchaseRequest PrePurchaseRequest { get; set; }

    }
}